<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <aaa></aaa>
    </div>
    <script>

        new Vue({
            el:"#app",
            methods: {
                
            },
            computed: {
                inf: function(){
                    return 1;
                }
            },





        });
        Vue.component('aaa',{
            data(){
              return {
                  min:10
              }  
            },
            methods:{
                abc:function(){
                    this.min++;
                }
                
            },


            template:'<h1 @click="abc">{{min}}</h1>'
        });
        
        // 创建Vue的对象
        let vm = new Vue({
            el:"#app",
            // data:{
            //     bSign:true
            // }
        })
             



    </script>
    
    
</body>
</html>